<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乐淘商城</title>
    <!-- 字体图标 -->
    <link rel="stylesheet" href="./lib/fa/css/font-awesome.min.css">
    <!--mui的css文件  -->
    <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/search.css">
</head>

<body>
    <div class="lt-container">
        <!-- 1-整体布局， 头部、底部固定定位 
            2- 主体 触屏滑动效果 -->
        <!-- 头部 -->
        <div class="lt-header">
            <div class="home">
                <a href="javascript:history.back();">
                    <span class="mui-icon mui-icon-back"></span>
                </a>
            </div>
            <h3 class="title">搜索中心</h3>
        </div>
        <!-- 主体 -->
        <div class="lt-main">
            <!-- 搜索框 -->
            <div class="lt-search">
                <input type="search" name="" id="search" placeholder="请输入搜索关键字">
                <button type="button" class="mui-btn mui-btn-primary" id="btn_search">搜索</button>
            </div>
            <!-- 历史记录 -->
            <div class="lt-history">
                <!-- <p class="mui-clearfix">
                    <span class="mui-pull-left">搜索历史</span>
                    <span class="mui-pull-right">
                        <span class="fa fa-trash"></span>
                        清空记录
                    </span>
                </p>
                <ul>
                    <li>
                        <a href="searchList.html?key=哈哈哈">哈哈哈</a>
                        <span data-index="0" class="btn_delete mui-pull-right mui-icon mui-icon-closeempty"></span>
                    </li>
                </ul> -->
            </div>
        </div>
        <!-- 首页底部 -->
        <div class="lt-footer">
            <ul>
                <li>
                    <a href="index.html">
                        <span class="fa fa-home"></span>
                        <p>首页</p>
                    </a>
                </li>
                <li>
                    <a href="category.html">
                        <span class="fa fa-bars"></span>
                        <p>分类页</p>
                    </a>
                </li>
                <li>
                    <a href="cart.html">
                        <span class="fa fa-shopping-cart"></span>
                        <p>购物车</p>
                    </a>
                </li>
                <li>
                    <a href="user.html">
                        <span class="fa fa-user"></span>
                        <p>用户中心</p>
                    </a>
                </li>

            </ul>
        </div>
    </div>

    <!-- 模板 -->
    <script type="text/html" id="tmp-search">
        {{if arr.length == 0}}
            <p>没有内容</p>
        {{else}}
            <p class="mui-clearfix">
                    <span class="mui-pull-left">搜索历史</span>
                    <span class="mui-pull-right btn-empty">
                        <span class="fa fa-trash"></span>
                        清空记录
                    </span>
            </p>
            <ul>
            {{each arr v i}}
                        <li>
                            <a href="searchList.html?key={{v}}">{{v}}</a>
                            <span data-index="0" class="btn_delete mui-pull-right mui-icon mui-icon-closeempty"></span>
                        </li>
            {{/each}}
            </ul>
        {{/if}}
    </script>
    <script src="./lib/zepto/zepto.min.js"></script>
    <script src="./lib/mui/js/mui.js"></script>
    <script src="./lib/artTemplate/template-web.js"></script>
    <script src="./js/common.js"></script>
    <script src="./js/search.js"></script>
</body>

</html>